<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<HTML>
	<HEAD>
		<base href="<bean:message key="base"/>">
		<title><bean:message key="title" /></title>
		<link rel="shortcut icon" type="image/ico"
			href="<bean:message key="base"/>favicon.ico">
		<meta http-equiv="content-type"	content="text/html; charset=<bean:message key="charset"/>">
		<LINK href="resources/css/login.css" type=text/css rel=stylesheet>
		<script>
			function login(){
				if(document.getElementById("txtUserName").value==""){
					alert("用户名不能为空");
				}else if(document.getElementById("txtUserPass").value==""){
					alert("密码不能为空");
				}else{
					loading();
					document.forms[0].submit();
				}
			}
			function loading(){
				var v1 = document.getElementById("loading");
				if(v1!=null)v1.style.display = "block";
				var v2 = document.getElementById("loading-mask")
				if(v2!=null)v2.style.display = "block";
			}
			document.onkeydown = function(event) {
		        event = event ? event : (window.event ? window.event : null);
		        if (event.keyCode == 13) {
		        	login();
		        }
		    }
		</script>
	</HEAD>
	<body onkeydown="if(event.keyCode==27) return false;">
		<jsp:include page="inc/header.jsp"></jsp:include>
		<form action="admin/index.jsp" method="post">
			<input type="hidden" name="method" value="login" />
			<table width="100%" height="100%" border="0" cellpadding="0"
				cellspacing="0">
				<tr>
					<td>
						<table width="962" border="0" align="center" cellpadding="0"
							cellspacing="0">
							<tr>
								<td height="235"
									background="resources/images/login/login_03.gif">
									&nbsp;
								</td>
							</tr>
							<tr>
								<td height="53">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td width="394" height="53"
												background="resources/images/login/login_05.gif">
												&nbsp;
											</td>
											<td width="206"
												background="resources/images/login/login_06.gif">
												<table width="100%" border="0" cellspacing="0"
													cellpadding="0">
													<tr>
														<td width="16%" height="25">
															<div align="right">
																<span class="STYLE1">用户</span>
															</div>
														</td>
														<td width="57%" height="25">
															<div align="center">
																<input id="txtUserName" type="text" name="loginName" maxlength="20"
																	style="width: 105px; height: 17px; background-color: #292929; border: solid 1px #7dbad7; font-size: 12px; color: #6cd0ff">
															</div>
														</td>
														<td width="27%" height="25">
															&nbsp;
														</td>
													</tr>
													<tr>
														<td height="25">
															<div align="right">
																<span class="STYLE1">密码</span>
															</div>
														</td>
														<td height="25">
															<div align="center">
																<input id="txtUserPass" type="password"
																	name="password" maxlength="20"
																	style="width: 105px; height: 17px; background-color: #292929; border: solid 1px #7dbad7; font-size: 12px; color: #6cd0ff">
															</div>
														</td>
														<td height="25">
															<div align="left">
																<a id="alogin" href="javascript:login();"><img
																		src="resources/images/login/dl.gif" width="49"
																		height="18" border="0"> </a>
															</div>
														</td>
													</tr>
												</table>
											</td>
											<td width="362"
												background="resources/images/login/login_07.gif">
												&nbsp;
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td height="213"
									background="resources/images/login/login_08.gif">
									&nbsp;
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
<jsp:include page="inc/footer.jsp"></jsp:include>